//
//  UFOYZXVideoTableViewCell.m
//  unrivalledForUniverse
//
//  Created by dllo on 16/1/18.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "UFOYZXVideoTableViewCell.h"

@implementation UFOYZXVideoTableViewCell

- (void)dealloc
{
    [_videoV release];
    [_timeL release];
    [_videotitleL release];
    [super dealloc];
}

- (instancetype) initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createSubviews];
    }
    return self;
}

#pragma 创建背景图片
- (void)createSubviews
{
    
    
    self.videotitleL = [[UILabel alloc] init];
    self.videotitleL.font = [UIFont systemFontOfSize:15.0];
    self.videotitleL.textColor = [UIColor colorWithRed:0.326 green:0.067 blue:0.290 alpha:1.000];
    self.videotitleL.numberOfLines = 0;
    [self addSubview:self.videotitleL];
    [self.videotitleL release];
    
    self.timeL = [[UILabel alloc] init];
    self.timeL.textColor = [UIColor colorWithRed:1.000 green:0.228 blue:0.581 alpha:1.000];
    self.timeL.font = [UIFont systemFontOfSize:13.0];
    [self addSubview:self.timeL];
    [self.timeL release];
    
    self.videoV = [[UIImageView alloc] init];
    [self addSubview:self.videoV];
    [self.videoV release];
    
}

#pragma 创建背景图片坐标
- (void)layoutSubviews {
    
    [super layoutSubviews];
    self.videotitleL.frame = CGRectMake(120 *SCREENWIDTH / WIDTHSIXP, 10 *SCREENHEIGHT / HEIGHTSIXP, 240 * SCREENWIDTH / WIDTHSIXP , 60 * SCREENHEIGHT / HEIGHTSIXP);
    self.videoV.frame = CGRectMake(10 *SCREENWIDTH / WIDTHSIXP, 10 * SCREENHEIGHT / HEIGHTSIXP, 100 * SCREENWIDTH / WIDTHSIXP , 80 * SCREENHEIGHT / HEIGHTSIXP);
    self.timeL.frame = CGRectMake(120 *SCREENWIDTH / WIDTHSIXP, 70 * SCREENHEIGHT / HEIGHTSIXP, 200 *SCREENWIDTH / WIDTHSIXP, 20 * SCREENHEIGHT / HEIGHTSIXP);
}





@end
